package com.ocom.common.request.human;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class ManagePerTagRelationRequest implements Serializable {
    private static final long serialVersionUID = 5164517067395822481L;

    @NotNull(message = "comId 不能为空")
    private Long comId;

    private int type = 0;
    private List<PerList> perLists = new ArrayList<>();

    private PerList perList = new PerList();
    private PerTag perTag = new PerTag();

    @Data
    public static class PerList{
        @JsonProperty("pId")
        private Long pId;
        private List<PerTag> perTags = new ArrayList<>();
    }

    @Data
    public static class PerTag{
        private Integer tagId;

    }

}
